
namespace GymTimer.Pages.Controls;

public partial class TimeEditer 
{
	public TimeEditer()
	{
		InitializeComponent();
	}

	public static BindableProperty TimeProperty = BindableProperty.Create(nameof(Time), typeof(TimeSpan), typeof(TimeEditer), default(TimeSpan), BindingMode.Default);

	public TimeSpan Time
	{
		get => (TimeSpan)GetValue(TimeProperty);
		set => SetValue(TimeProperty, value);
	}

    private void Button_Clicked(object sender, EventArgs e)
    {
        Time = Time.Subtract(TimeSpan.FromSeconds(1));
    }

    private void Button_Clicked_1(object sender, EventArgs e)
    {
		Time = Time.Add(TimeSpan.FromSeconds(1));
    }
}